package week11;

Thread t1 =new Thread(new Runnable(){
	@Override
	public void run() {
		System.out.println(mainThreadName);
		System.out.println(Thread.currentThread().getName());
		System.out.println(Arrays.toString(getClass().getInterfaces()));
	}
	
});



Thread t1 = new Thread(() -> {
    System.out.println(mainThreadName);
    System.out.println(Thread.currentThread().getName());
    System.out.println(Arrays.toString(Thread.class.getInterfaces()));
});